home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / gdb-4.5 / dist / bfd / hosts / hp9000.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-12-13  |  1.3 KB  |  67 lines

  1. #include <fcntl.h>
  2. #include <errno.h>
  3. #include <stdio.h>
  4. #include <sys/types.h>
  5. #include <sys/stat.h>
  6. #include <ctype.h>
  7. #include <string.h>
  8. #include <sys/file.h>
  9. #ifndef O_ACCMODE
  10. #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
  11. #endif
  12. #define SEEK_SET 0
  13. #define SEEK_CUR 1
  14.  
  15. /* Some things that need to be defined in order to make code written for
  16.    BSD Unix compile under System V Unix.  */
  17.  
  18. #include <memory.h>
  19. #define bcmp(b1,b2,len)        memcmp(b1,b2,len)
  20. #define bcopy(src,dst,len)    memcpy(dst,src,len)
  21. #define bzero(s,n)        memset(s,0,n)
  22.  
  23. static int
  24. rename(from, to)
  25. {
  26.   unlink(to);
  27.   return(link(from, to));
  28. }
  29.  
  30. /*
  31.  * Might not need these. Leave them out for now.
  32.  *
  33. #include <string.h>
  34. #define index(s,c)        strchr(s,c)
  35. #define rindex(s,c)        strrchr(s,c)
  36.  
  37. #ifdef SEEK_SET
  38. #    ifndef L_SET
  39. #        define L_SET SEEK_SET
  40. #    endif
  41. # endif
  42.  
  43. #ifdef SEEK_CUR
  44. #    ifndef L_INCR
  45. #        define L_INCR SEEK_CUR
  46. #    endif
  47. # endif
  48.  */
  49.  
  50. /* EXACT TYPES */
  51. typedef char int8e_type;
  52. typedef unsigned char uint8e_type;
  53. typedef short int16e_type;
  54. typedef unsigned short uint16e_type;
  55. typedef int int32e_type;
  56. typedef unsigned int uint32e_type;
  57.  
  58. /* CORRECT SIZE OR GREATER */
  59. typedef char int8_type;
  60. typedef unsigned char uint8_type;
  61. typedef short int16_type;
  62. typedef unsigned short uint16_type;
  63. typedef int int32_type;
  64. typedef unsigned int uint32_type;
  65.  
  66. #include "fopen-same.h"
  67.